package com.mshop.service;

import java.util.List;

import com.mshop.fw.modules.CommonService;
import com.mshop.po.Jiangpin;
import com.mshop.util.QL;

public class JiangpinService extends CommonService {

	public List<Jiangpin> list() {
		return dao.find(Jiangpin.class, QL.HQL.Jiangpin.LIST, new Object[] {});
	}

	public void save(Jiangpin Jiangpin) {
		dao.save(Jiangpin);
	}

	public Jiangpin load(String id) {
		return dao.load(Jiangpin.class, new Long(id));
	}

	public Jiangpin get(String id) {
		return dao.get(Jiangpin.class, new Long(id));
	}

	public void delete(String id) {
		dao.delete(this.get(id));
	}
}
